

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>网站设置</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/admin/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/admin/layuiadmin/style/admin.css" media="all">
</head>
<body>
<form class="layui-form" action="/admin/set/shopsite" method="post">
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">商城设置</div>
                    <div class="layui-card-body">
                        
                        <div class="layui-form-item" lay-filter="sex">
                            <label class="layui-form-label">分类等级</label>
                            <div class="layui-input-block">
                                <input type="radio" name="shopsite_classno" id="shopsite_classno" value="1" title="一级" {if condition="isset($setres.shopsite_classno) && $setres.shopsite_classno==1"} checked {/if}>
                                <!-- <input type="radio" name="shopsite_classno" id="shopsite_classno" value="2" title="二级" {if condition="config('-shopsite.shopsite_classno')==2"} checked {/if}>
                                <input type="radio" name="shopsite_classno" id="shopsite_classno" value="3"  title="三级" {if condition="config('-shopsite.shopsite_classno')==3"} checked {/if}> -->
                            </div>
                            <div class="layui-form-mid layui-word-aux">商城的分类等级</div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">商城小程序首页地址</label>
                            <div class="layui-input-inline">
                                <input type="text" name="applet_homepage_path"  value="{if condition="isset($setres.applet_homepage_path)"}{$setres.applet_homepage_path}{/if}" placeholder="小程序首页地址" class="layui-input">
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="submit" class="layui-btn" value="确认保存">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
</form>

<script src="/admin/layuiadmin/layui/layui.js"></script>
<script src="/admin/layuiadmin/jq/jquery.js"></script>
<script>
    layui.config({
        base: '/admin/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'upload','layedit'], function(){
        var $ = layui.$
            ,form = layui.form
            ,upload = layui.upload,layedit = layui.layedit;

        upload.render({
            elem: '#layuiadmin-upload-useradmin' //绑定元素
            ,url: "{:url('/admin/Index/upload')}" //上传接口
            ,ext: 'jpg|png|gif'//限制文件
            ,done: function(res){
                //上传完毕回调
                $(this.item).prev("div").children("input").val(res.filename);
                document.getElementById('img1').src = res.filename;
                layer.msg("上传成功");
            }
            ,error: function(){
                //请求异常回调
            }

        });


    })
</script>
</body>
</html>